package com.lc.zpyh.http.request;


import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

public class AddCartApi implements IRequestApi , IRequestType {
    private String userId;
    private String  count;
    private String price;
    private String  commodityId;
    private String  merchantId;
    private String  specificationId;
    private String  condimentsId;

    public AddCartApi setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public AddCartApi setCount(String count) {
        this.count = count;
        return this;
    }

    public AddCartApi setPrice(String price) {
        this.price = price;
        return this;
    }

    public AddCartApi setCommodityId(String commodityId) {
        this.commodityId = commodityId;
        return this;
    }

    public AddCartApi setMerchantId(String merchantId) {
        this.merchantId = merchantId;
        return this;
    }

    public AddCartApi setSpecificationId(String specificationId) {
        this.specificationId = specificationId;
        return this;
    }

    public AddCartApi setCondimentsId(String condimentsId) {
        this.condimentsId = condimentsId;
        return this;
    }

    @Override
    public String getApi() {
        return "app/cart/addCart";
    }

    @Override
    public BodyType getType() {
        return BodyType.JSON;
    }
}
